package com.tos.second.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.github.pagehelper.Page;
import com.tos.second.dto.UserPageQueryDTO;
import com.tos.second.entity.Goods;
import com.tos.second.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface UserMapper extends BaseMapper<User> {


    @Select("select * from user where username = #{username}")
    User getOne(String username);


    void saveUser(User user);

    void updateUser(User user);

    @Select("select * from user where id = #{createUser}")
    User getById(Long createUser);


}
